module.exports = function(ctx, next) {
    var query = ctx.query;
    var body = ctx.request.body;
    var params = {};
    for (var p in query) {
        params[p] = query[p];
    }
    for (var p in body) {
        params[p] = body[p];
    }
    ctx.params = params;
    next();
}